<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://www.springframework.org/security/tags" prefix="sec" %>
<div id="toolbar">
 <sec:authorize ifAnyGranted="ROLE_SUPERVISOR">
   	<button class="securBtn" id="save">保存修改</button>
 	<button class="securBtn" id="list">返回列表</button>
 	<button class="securBtn" id="ofusers">查看用户</button>
 </sec:authorize>
 
 <sec:authorize ifAnyGranted="ROLE_smi0oivdpcda1it64mnma2zvo3gisi">
   <button id="applySec">通过</button>
   <button class="securBtn" id="ofusers">查看用户</button>
 </sec:authorize>
 
</div>
<div style="margin: 20px; width:100%">
<label>名称:</label>
<input type="hidden" name="bean.name" id="name"    value="${bean.name}" />
<input name="bean.description" id="description"    value="${bean.description}" size="50" />
</div>
<div id="res-pannel"
				style="float: left; margin: 20px; border: 1px solid #c3daf9; width: 400px; min-height: 550px;height:auto">
<ul id="resTree" class="ztree"></ul>				
				</div>
<script type="text/javascript">
  var action = '${param.operation}'||'update';
  var secRole = '${bean.name}'||null;
  var turl = '${bean.login.targetUrl}' || null;
  var priority = '${bean.priority}' || 0;
</script>
<script type="text/javascript" src="scripts/apps/admin/securole/edit.js"></script>
<div id="msgPannel" style="float: left; margin: 20px; border: 1px solid #c3daf9; width: 200px; height: 550px;">
<select size="10" style="width: 100%;height:100%" name="bean.login.targetUrl"></select>
</div>